<template>
  <div class="person">
    ？？？
  </div>
</template>

<script setup name="Person" lang="ts">
import {type PersonInter, type PersonType} from '@/types'

// let person: PersonInter = {id: 1, name: '张三', age: 18}

// let personList: Array<PersonInter>

// let personList: PersonType = [
//   {id: 1, name: '张三', age: 18},
//   {id: 2, name: '李四', age: 20},
//   {id: 3, name: '王五', age: 22}
// ]

let personList: PersonInter[] = [
  {id: 1, name: '张三', age: 18},
  {id: 2, name: '李四', age: 20},
  {id: 3, name: '王五', age: 22}
]
</script>

<style scoped>
.person {
  background-color: skyblue;
  box-shadow: 0 0 10px #000;
  border-radius: 10px;
  padding: 20px;
}

button {
  margin: 0 5px;
}

li {
  font-size: 20px;
}
</style>
